<header>
	<app:channel rows="4" sidx="priority">
	<div id="mnav">
		<h2>
			<span class="navicon"></span>
		</h2>
		<ul>
			<li><a th:href="@{/}">首页</a></li>
			<li th:each="channel : ${paging.rows}">
				<a th:href="@{${'/'+channel.path}+'.html'}" th:text="${channel.name}"></a>
			</li>
		</ul>
	</div>
	<nav>
		<ul>
			<li><a th:href="@{/}">首页</a></li>
			<li th:each="channel : ${paging.rows}">
				<a th:href="@{${'/'+channel.path}+'.html'}" th:text="${channel.name}"></a>
			</li>
		</ul>
	</nav>
	</app:channel>
</header>
<script type="text/javascript">
window.onload = function ()
{
	var oH2 = document.getElementsByTagName("h2")[0];
	var oUl = document.getElementsByTagName("ul")[0];
	oH2.onclick = function ()
	{
		var style = oUl.style;
		style.display = style.display == "block" ? "none" : "block";
		oH2.className = style.display == "block" ? "open" : ""
	}
}
</script>